package springboot.bigdata.demo.dao;

import com.github.pagehelper.PageInfo;
import springboot.bigdata.demo.model.User;

import java.util.List;

public interface UserDao {

    PageInfo<User> getUserList(User userPar);

    User addUser(User user);

    /**
     * 批量录入，0db0, 1db1
     * @param userList
     * @param dbType
     * @return
     */
    int addUserList(List<User> userList, int dbType);

}
